package com.jarveis.dbs;

/**
 * 常量类
 * 
 * @author liuguojun
 */
public interface Constants {

	public int ERROR_PARAM = 1001;
	public int ERROR_FUNCID = 1002;
	public int ERROR_SERVICE = 1003;
	public int ERROR_ERRCODE = 1004;
	public int ERROR_TOKEN = 1005;
	public int ERROR_DEVICE = 1006;
	public int ERROR_RETURN = 1007;

	public int REDIS_EXPIRED = 604800; // 7 * 24 * 60 * 60
	public String REDIS_DEVICE = "device:"; // 
	public String REDIS_TOKEN = "token:"; // 
	public String REDIS_USER = "user:"; // 

	public String LABEL_TOKEN = "@token";
	public String LABEL_DEVICE = "@device";
	public String LABEL_USERID = "@userid";
}
